﻿using System.Collections;

namespace DataStructure;

internal class GeneralType
{
    static void Main(string[] args)
    {
        ///*
        int[] arr = new int[10];
        for (int i = 0; i < 10; i++)
        {
            arr[i] = i;
            Console.Write(arr[i] + " ");
        }

        Console.WriteLine();

        ArrayList al = new ArrayList(10);
        for (int i = 0; i < 15; i++)
        {
            al.Add(i);
            Console.Write(al[i] + " ");
        }

        Console.WriteLine();
        List<int> l = new List<int>(10);
        for (int i = 0; i < 15; i++)
        {
            l.Add(i);
            Console.Write(l[i] + " ");
        }

        Console.Read();
        //*/
    }
}
